/*    file: UrlDialog.h
 *    desc:
 *   
 * created: 2014-07-01 20:42:56
 *  author: zhengchuanjiang
 * version: 1.0
 * company: 
 */ 


#if !defined URLDIALOG_H_
#define URLDIALOG_H_

#include "resource.h"
////////////////////////////////////////////////////////////////////////////
class CUrlDialog : public CDialogImpl< CUrlDialog >
{
public:
    enum 
    {
        IDD = IDD_DIALOG_URL
    };

    BEGIN_MSG_MAP(CUrlDialog)
        MESSAGE_HANDLER(WM_INITDIALOG, OnInitDialog)
        COMMAND_ID_HANDLER(IDOK, OnOK)
        COMMAND_ID_HANDLER(IDCANCEL, OnCancel)
    END_MSG_MAP()

    CUrlDialog();

    CString getUrl();
    void setUrl(const CString& url);

protected:
    LRESULT OnInitDialog(UINT /*uMsg*/, WPARAM /*wParam*/, LPARAM /*lParam*/, BOOL& /*bHandled*/);
    LRESULT OnOK(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);
    LRESULT OnCancel(WORD /*wNotifyCode*/, WORD wID, HWND /*hWndCtl*/, BOOL& /*bHandled*/);

private:
    CString m_url;
    CComboBox   m_cmb;

};

////////////////////////////////////////////////////////////////////////////
#endif //URLDIALOG_H_

